import {
  PLATFORM
} from '@/store/mutation-types'
import storage from '@/utils/storage'


const app = {
  state: {
    // 当前终端平台
    answerList: '',
		setdates: {},
		setdatesdy: {},
  },

  mutations: {
    SET_TANSEWR: (state, value) => {
      state.answerList = value
    },
		SET_HTSTA: (state, value) => {
			state.setdates = value
		},
		SET_HTSTADY: (state, value) => {
			state.setdatesdy = value
		},
  },

  actions: {
    // 保存试卷提交的答案
    setanswerList({ commit }, data) {
      commit('SET_TANSEWR', data)
    },
		// 保存页面状态
		sethtsta({ commit }, data) {
		  commit('SET_HTSTA', data)
		},
		// 保存页面状态(调研任务)
		sethtstady({ commit }, data) {
		  commit('SET_HTSTADY', data)
		},
  }
}

export default app
